package struct.gameinfo
{
	import struct.gameinfo.ui.GameInfoUI;

	public class GameInfoModule
	{
		public var base:GameInfoUI;
		protected static var _instance:GameInfoModule;
		public function GameInfoModule()
		{
			base = new GameInfoUI();
		}
		public static function getInstance():GameInfoModule
		{
			if (!_instance)
			{
				_instance = new GameInfoModule();
			}
			return _instance;
		}
		
		public function startUp():void
		{
			base.y = Main.application.height - base.height;
			Main.application.uiLayer.addChild(base);
		}
		
		public function addScore(score:int):void
		{
			base.addScore(score);
		}
	}
}